projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea4603e
)
GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name
author
Alberto Ruiz
<aruiz@gnome.org>
Tue, 3 May 2011 00:37:48 +0000
(
01:37
+0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 15 Aug 2011 22:57:54 +0000
(18:57 -0400)
gtk/gtkfontchooser.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfontchooser.c
b/gtk/gtkfontchooser.c
index bc86b8148b051eaa72294205236b195628d0db89..8a98b1e027715908b9c2bf76c5b9689067abfb25 100644
(file)
--- a/
gtk/gtkfontchooser.c
+++ b/
gtk/gtkfontchooser.c
@@
-1535,6
+1535,7
@@
gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
gboolean found = FALSE;
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), FALSE);
+ g_return_val_if_fail (fontname != NULL, FALSE);
if (!gtk_widget_has_screen (GTK_WIDGET (fontsel)))
return FALSE;